<?php
namespace app\firm\controller;

use app\firm\behavior\Behavior;
use think\Controller;
use think\Config;
use redis\Redis;
use think\Request;

class Common extends Behavior
{
    const  UPLOAD_SRC = '/uploads/projectuser/';
    /**
     * 基础控制器初始化
     */
    public function _initialize() {
        $user_info = request()->firm_info;
        if ($user_info['safemobile'] != 'YES') {
            abort(json([
                'msg' => '未认证手机号，请先认证手机号',
                'status' => 203
            ]));
        }
    }

}